<?php
include '../classes/Authentication.php';
session_start();
$auth = new Authentication ();
$auth->checkAuthentication ($_SERVER['PHP_SELF'], 2);

$db = new DB_For_User();
$id = $_GET['id'];
$user_id = $_GET['user_id'];

$db->takeTicket($id, $user_id);


header('Location: tickets_open.php');
?>